This solution nearly beats my initial sum solution... at sum